package com.zhang.dft_project.event;

import org.springframework.context.ApplicationEvent;

import java.time.Clock;

/**
 * 自定义事件对象
 */
public class NoticeEvent extends ApplicationEvent {
    private String msg;
    public NoticeEvent(Object source) {
        super(source);
    }

    public NoticeEvent(Object source,String msg) {
        super(source);
        this.msg = msg;
    }

    public NoticeEvent(Object source, Clock clock) {
        super(source, clock);
    }

    public String getMsg() {
        return msg;
    }
}
